//
//  CartoonShowImageModel.m
//  WuLi
//
//  Created by Gollum on 16/09/26
//  Copyright (c) Gollum. All rights reserved.
//

#import "CartoonShowImageModel.h"
#import "CartoonShowImageData.h"

@implementation CartoonShowImageModel

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [CartoonShowImageData class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    
    NSMutableArray *dataArray = [NSMutableArray array];
    NSArray *valueArray = value;
    if ([key isEqualToString:@"data"]) {
        for (NSDictionary *dic in valueArray) {
            CartoonShowImageData *data = [CartoonShowImageData modelWithDic:dic];
            [dataArray addObject:data];
        }
        _data = dataArray;
    }
    
}

@end
